/*
 * Sphere.h
 *
 *  Created on: 19/05/2010
 *      Author: Nadav
 */

#ifndef SPHERE_H_
#define SPHERE_H_

#include "Object3D.h"

class Sphere: public Object3D {
public:
	Sphere(Vec3f center, float radius, Vec3f color);
	virtual ~Sphere();
	virtual bool intersect(const Ray &r, Hit &h, float tmin);
protected:
	Vec3f center;
	float radius;
	Vec3f getNormal(const Ray& r, const float hitPoint);


};

#endif /* SPHERE_H_ */
